{% extends "帖子/Yy天涯/H5/template.html" %}
{% block title %}观看历史{% endblock %}
{% block css %}{% include '帖子/Yy天涯/H5/include/topic_item_css.html' %}{% endblock %}
{% block body %}
{% include "帖子/Yy天涯/H5/include/返回上一级.html" %}



<div class="topic_box"></div>

{% endblock %}
{% block js %}
<script src="/static/CloudJs/Topic/Yy天涯/util.js"></script>

<script>
    layui.use(function () {
        var flow = layui.flow;

        const local_res = YyGetLocatStorge(topic_item_list);
        if (local_res != null) {
            flow.load({
                elem: '.topic_box', // 流加载容器
                done: function (page, next) { // 执行下一页的回调
                    // 模拟数据插入
                    next(YyTY_Return_Topic_List(local_res).join(''), page > (local_res.length / 20) + 1);
                    YyTY_Show_Img(local_res)
                }
            });
        } else {
            $(".topic_box").html("<div class='Yy-text-cen Yy-mt-30px '> <span class='iconfont icon-guankanlishi'></span> 暂无观看历史</div>")
        }
        // 流加载实例

    });
</script>

{% endblock %}